import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import spring.pojo.HelloWorld.HelloWorld;

/**
 * @author Yancy xiao
 * @create 2022-11-16 21:06
 */
public class test {
    @Test
    public void test() {
        ApplicationContext ioc = new ClassPathXmlApplicationContext("applicationContext.xml");
        HelloWorld hello = (HelloWorld) ioc.getBean("Hello");
        hello.sayHello();
    }
}
